package com.itheima.date8;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class Demo03 {
    public static void main(String[] args) {
        LocalDateTime time = LocalDateTime.of(2011, 11, 11, 11, 11, 11);

        LocalDate localDate = time.toLocalDate();
        System.out.println(localDate);
        LocalTime localTime = time.toLocalTime();
        System.out.println(localTime);

    }
}
